﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HttpClientHelper
{
    public class CustomerHttpException : Exception
    {
        public string? ErrorCode { get; set; }
        public string? ErrorMessage { get; set; }
        public CustomerHttpException() : base()
        { }
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="errorCode"></param>
        /// <param name="errorMessage"></param>
        public CustomerHttpException(string errorCode, string errorMessage) : base()
        {
            this.ErrorCode = errorCode;
            this.ErrorMessage = ErrorMessage;
        }
    }
}
